<template>
  <div class="businessMask">
    <div class="businessDialog" style="width: 100%;height: 100%;">
      <div class="dialog-header">
        <span>考场监控</span>
        <span class="icon iconfont iconbiaoqianlan-guanbi close" @click="hide"></span>
      </div>
      <div class="dialog-body">
        <div class="information">
          <div class="infoTitle">考试信息</div>
          考试名称：
          <el-input class="systemInput" v-model="info.name" style="width: 220px;margin-bottom: 16px;"/>
          考场名称：
          <el-input class="systemInput" v-model="info.name" style="width: 220px;margin-bottom: 16px;"/>
          考场编号：
          <el-input class="systemInput" v-model="info.name" style="width: 220px;margin-bottom: 16px;"/>
          考试人数：
          <el-input class="systemInput" v-model="info.name" style="width: 220px;margin-bottom: 16px;"/>
          组织单位：
          <el-input class="systemInput" v-model="info.name" style="width: 220px;margin-bottom: 16px;"/>
          监考人：
          <el-input class="systemInput" v-model="info.name" style="width: 220px;margin-bottom: 16px;"/>
          监考人联系方式：
          <el-input class="systemInput" v-model="info.name" style="width: 220px;margin-bottom: 16px;"/>
          考试时间：
          <el-input class="systemInput" v-model="info.name" style="width: 220px;margin-bottom: 16px;"/>
        </div>
        <div class="status">
          <div class="statusTitle">考场状态</div>
          <div class="personInfo" v-for="person in personList">
            <div class="personPic"></div>
            <div class="personName">姓名：{{ person.personName }}</div>
            <div class="personNum">准考证号：{{ person.personNum }}</div>
            <div class="personStatus">考试状态：{{ person.personStatus }}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      info: {
        name: '变电站考试',
      },
      personList: [
        {personName: '张三', personNum: '001', personStatus: '考试中'},
        {personName: '张三2', personNum: '0015', personStatus: '考试中'},
        {personName: '张三3', personNum: '0013', personStatus: '考试中'},
        {personName: '张三4', personNum: '0051', personStatus: '考试中'},
      ]
    }
  },
  methods: {
    hide() {
      this.$emit('close')
    }
  }
}
</script>

<style lang="scss" scoped>
.dialog-body {
  overflow: auto;
  .information .infoTitle,
  .status .statusTitle {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ccc;
    position: relative;

    &:after {
      display: block;
      content: '';
      height: 4px;
      width: 100px;
      background-color: #0d59d6;
      position: absolute;
      left: 0;
      bottom: -2px;
    }
  }

  .status .statusTitle {
    margin-bottom: 0;
  }

  .information {
    text-align: left;
  }

  .status {
    text-align: left;
    height: calc(100% - 153px);

    .personInfo {
      width: 198px;
      height: 298px;
      border: 1px solid #ccc;
      border-radius: 4px;
      margin-left: 38px;
      margin-top: 38px;
      float: left;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      .personPic {
        border: 1px solid #ccc;
        height: 193px;
        width: 147px;
        border-radius: 4px;
        position: relative;

        &:before {
          content: '个人照片';
          display: inline;
          position: absolute;
          top: 50%;
          left: 50%;
          color: #ccc;
          transform: translateX(-50%) translateY(-50%);
        }
      }

      div {
        margin-top: 6px;
      }
    }
  }
}
</style>
